<h1>Search</h1>
<?php foreach($products_only as $products_only_row){ ?>
<div style="width: 400px; height: 400px; border: 1px solid black; margin: 5px; float: left;">
    <a href="<?php echo url_for("@"); ?>"><img src="#" width="200px" height="200px" /></a><br />
    Código de Producto: <?php echo $products_only_row["id"]; ?><br />
    Nombre de Producto: <a href=""><?php echo $products_only_row["name"]; ?></a><br />
    Precio: S/.<?php echo $products_only_row["price"]; ?><br />
    <?php foreach($products as $product){ ?>
        <?php if($products_only_row["id"] == $product[4]){ ?>
        <ul>
            <li>
                <?php echo $product[8]; ?>:
                <?php echo $product[9]; ?>
                <?php echo $product[7]; ?>
            </li>
        </ul>
        <?php } ?>
    <?php } ?>
</div>
<?php } ?>